import {RouteObject} from "react-router-dom";

const routes:RouteObject[] = []

const module = import.meta.globEager('./modules/**/*.tsx');

Object.keys(module).forEach((value) => {
  if (!module[value]) {
    return;
  }
  routes.push(...(module[value].default as RouteObject[]));
});


export default routes